﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Linq;
using Scheduling.Models.Helpers;

namespace Scheduling.Models.Repos.Database.Objects
{
    public partial class DBContext : DataContext
    {
        public DBContext(string connection) : base(connection)
        {
            
        }
        public static DBContext Create()
        {
            return new DBContext(Configuration.ConnectionString);
        }
        public Table<DBBookingRequest> BookingRequests;
        public Table<DBBooking> Bookings;
        public Table<DBCourse> Courses;
        public Table<DBCourseInstance> CourseInstances;
        public Table<DBDepartment> Departments;
        public Table<DBProperty> Properties;
        public Table<DBRoom> Rooms;
        public Table<DBRoomProperty> RoomProperties;
        public Table<DBSubject> Subjects;
        public Table<DBUser> Users;
        public Table<DBUserGroup> UserGroups;
        public Table<DBBookingRequestDays> BookingRequestDays;
    }
}